<local:DocumentBase x:Class="WPFExcelReport.SYTAB05"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"
                    xmlns:KSL="clr-namespace:WPFExcelReport;assembly=TKSLEIST" 
                    xmlns:VKK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS" 
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS" 
                    xmlns:AF="clr-namespace:WPFExcelReport;assembly=TABFOLGE" 
                    xmlns:APK="clr-namespace:WPFExcelReport;assembly=TAPKOPF" 
                    xmlns:APF="clr-namespace:WPFExcelReport;assembly=TAPFOLGE" 
                    xmlns:ATK="clr-namespace:WPFExcelReport;assembly=TAPARTK" 
                    xmlns:ATE="clr-namespace:WPFExcelReport;assembly=TAPARTE" 
                    xmlns:AE="clr-namespace:WPFExcelReport;assembly=TABARTE" 
                    xmlns:AMV="clr-namespace:WPFExcelReport;assembly=TAMVALUE" 
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TWAFARBEN"  
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBDAT" 
                    xmlns:WBB="clr-namespace:WPFExcelReport;assembly=TWBBST" 
                    xmlns:MKF="clr-namespace:WPFExcelReport;assembly=TICC_MKRF"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"   
                    Name="TV" 
                   Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </local:DocumentBase.Resources>
    <Grid Margin="20,0,20,0">

        <Grid.RowDefinitions>
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="Auto" />
            <RowDefinition   Height="1*" />
            <RowDefinition   Height="1*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <AB:TAB02SYT Grid.Row="2" Grid.Column="1" 
                     Name="cAB02"
                     ABAUF="{Binding ABAUF,ElementName=TV}" 
                     />
        <Grid  Grid.Row="2" Grid.Column="2" >
            <Grid.RowDefinitions>
                <RowDefinition   Height="Auto" /> 
                <RowDefinition   Height="1*" /> 
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="1*"/> 
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2">  
                <WrapPanel>
                    <WS:TWS15  EXAUF="{Binding PRART,ElementName=cAB02}" Name="cWS15"/>
                </WrapPanel>
                <WrapPanel>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=色号属性:}}"/>
                    <WF:TWS07  EXAUF="{Binding PRART,ElementName=cAB02}"  ZUART="C" Name="cC" />
                    <TextBlock Text="{Binding Source={Localization:Translate Word=整理属性:}}"/>
                    <WF:TWS07  EXAUF="{Binding PRART,ElementName=cAB02}" ZUART="B" Name="cF" />
                </WrapPanel> 
            </StackPanel>
            <Grid Grid.Row="1" Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                </Grid.RowDefinitions>
                <TextBlock Text="{Binding Source={Localization:Translate Word=纱线染色}}"/>
                <WF:TWS06C Grid.Row="1" EXAUF="{Binding KEY,ElementName=cWS}"/>
            </Grid>
            <Grid Grid.Row="1" Grid.Column="1">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"></RowDefinition>
                    <RowDefinition Height="1*"></RowDefinition>
                </Grid.RowDefinitions>
                <TextBlock Text="{Binding Source={Localization:Translate Word=后整理}}"/>
                <WF:TWS06B Grid.Row="1" EXAUF="{Binding KEY,ElementName=cWS}"/>
            </Grid>
        </Grid>
        <TabControl  Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="4"  >
            <TabItem Header="生产单明细">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="2*"/>
                    </Grid.ColumnDefinitions>
                    <AB:TAB05RZ    Grid.Row="0" Grid.RowSpan="2" Grid.Column="0"  
                               IsCanLoad="True"
                               POSTYP="VA "
                               MAKE2ORD="False"  
                               Name="cRZ"
                               ORDERNUM="{Binding RULEKEY,ElementName=cAB02}"
                               QTY="{Binding QTY,ElementName=cAB02}"  
                               EXAUF="{Binding EXORD,ElementName=cAB02}"
                               IsAuto="True" 
                               />

                    <AF:TAB10  Name="cABF" Grid.Column="1" 
                            dwABP="{Binding dwAB,ElementName=cRZ}" 
                            EXAUF="{Binding KEY,ElementName=cRZ}"/>
                </Grid>
            </TabItem>
            <TabItem Header="生产分批状态" Name="ZoneMK">
                <MKF:TMKRFABP
                     IsCanLoad="{Binding IsSelect,ElementName=ZoneMK}"
                    EXAUF="{Binding KEY,ElementName=cRZ}"/>
            </TabItem>

            <TabItem  Header="回修管理" Name="cHX">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition   Height="Auto" />
                        <RowDefinition   Height="1*" />
                        <RowDefinition   Height="1*" />
                    </Grid.RowDefinitions>
                    <AB:TAB05RP  Name="cABRP"  
                                 Grid.Row="1"  Grid.Column="0" 
                                EXAUF="{Binding RPAUF,ElementName=cRP}"
                                dwWS="{Binding dwWS,ElementName=cRZ}"
                                 IsReset="{Binding IsReset,ElementName=cRZ}" 
                                 />
                    <AF:TAB05AV12   EXAUF="{Binding ABAUF,ElementName=cRZ}"
                                Name="cRP"
                                Grid.Row="1"  Grid.Column="1"/>

                    <WBB:TWZAV12  Grid.Row="2"  Grid.Column="0"
                                  EXAUF="{Binding KEY,ElementName=cRP}"  
                                  RPAUF="{Binding RPAUF,ElementName=cRP}"
                                  IsWZChg="{Binding IsWZChg,ElementName=cWZAM}"
                                  Name="cWZAV12"
                                  IsReset="{Binding IsReset,ElementName=cRZ}" 
                                   />
                    <WBB:TWZ12  EXAUF="{Binding KEY,ElementName=cABRP}"  
                                Grid.Row="2"  Grid.Column="1"
                                Name="cWZAM"
                                IsReset="{Binding IsReset,ElementName=cRZ}" 
                              />
                </Grid>

            </TabItem>
            <TabItem Header="工艺管理" Name="cPF">
                <Grid  >
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <WrapPanel  Grid.Row="0">
                        <TextBlock Text="选择流程:" Margin="20,0,0,0"/>
                        <APK:TSAP02  Margin="20,0,0,0" ARTST="F" Name="cAP02" IsEdit="True"/>
                    </WrapPanel>

                    <APF:TAP02  Grid.Row="1"  EXAUF="{Binding KEY,ElementName=cAP02}" Name="cAP04"
                                       dwAPF="{Binding dwNAPF,ElementName=cABF}" 
                                       />
                    <Expander Grid.Row="2"      IsExpanded="False" Header="工艺条件">
                        <ATK:TAPARTK Name="cAP05"   EXAUF="{Binding KEY,ElementName=cAP04}"   />
                    </Expander>
                    <Expander Grid.Row="3"     IsExpanded="False" Header="工艺参数">
                        <ATE:TAPARTE   IsAuto="False"  EXAUF="{Binding KEY,ElementName=cAP05}"   />
                    </Expander>
                    <Expander Grid.Row="5"     IsExpanded="False" Header="步骤条件">
                        <APF:TAP41    ORDERNUM="{Binding KEY,ElementName=cAP04}"     />
                    </Expander>
                </Grid>
            </TabItem>
            <TabItem Header="品种工艺" Margin="0" Name="cGY">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Row="0">
                        <VF:TNOVA10      Visibility="Visible" 
                                 IsNew="True"
                                 KOLL="SHW  "
                                 EXAUF="{Binding WFART,ElementName=cAB02}"                               
                                 Name="cNOVA"/>
                        <WS:TWASTAMM  
                        Name="cWS"
                        ORDERNUM="{Binding PRART,ElementName=cAB02}"
                        dwWS="{Binding dwWS,ElementName=cRZ}"
                        />
                    </StackPanel> 
                </Grid>  
            </TabItem>
        </TabControl>
    </Grid>
</local:DocumentBase>
    
